package com.mxpio.erp.common.enums;

public interface EquipmentEnums {

    enum AuditStatus {
        APPLY("10", "申请"), SEND("20", "派工"), AUDIT("30", "稽核整改"), CHECKED("40", "验收");

        AuditStatus(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum UpkeepPlanTarget {
        AREA_TARGET("area", "区域"), EQP_TARGET("equipment", "设备");

        UpkeepPlanTarget(String code, String name) {
            this.code = code;
            this.name = name;
        }

        private String code;
        private String name;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    enum UpkeepStatus {//ERP_EQUIPMENT_UPKEEPTASK_STATUS
        START("10","待下达"),RELEASE("20","待派工"),WAIT_EXECUT("30","待执行"),EXECUT("40","执行中"),
        PAUSE("45","暂停中"),REPORT("46","待汇报"), CHECK("47","待验收"), EVA("48","待评价"),
        ZIPING("49","待归档"), ZIPPED("50","已归档"), SHUT("60","关闭"),VETO("90","取消/终止/否决");

        UpkeepStatus(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum EqpBasicsStatus {//设备台账状态变更申请单类型，对应字典：ERP_EQUIPMENT_CHANGE_TYPE
        USING(10, "在用"), STORE(20, "封存"), STOP(30, "停用"), SCRAP(40, "报废");

        EqpBasicsStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private Integer code;
        private String desc;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum PersonGroupCategory {//设备-人员群组-群组类别 ：ERP_EQUIPMENT_GROUP_CATEGORY
        BY("BY", "保养类"), WX("WX", "维修类"), DXJ("DXJ", "点巡检类"), JH("JH", "稽核类"), GCS("GCS", "工程师");

        PersonGroupCategory(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum RepairStatus {//维修单 维修状态 ERP_EQUIPMENT_REPAIR_STATUS
        APPLY(10,"待派工"),SEND(20,"待维修"),REPAIR(30,"维修中"),REPORT(31,"待汇报"),
        CHECK(32,"待验收"),PAUSE(35,"暂停中"), EVA(40,"待评价"), SUPERVISOR(42,"主管确认"),
        ZIPING(45,"待归档"), ZIPPED(50,"已归档"),
        SHUT(60,"关闭"),VETO(90,"取消/终止/否决");

        RepairStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private Integer code;
        private String desc;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
    enum RepairOrderStatus {//ERP_EQUIPMENT_REPAIR_ORDER_STATUS
        EXEC("1", "正常"), PAUSE("2", "搁置"), WAIT("3", "等件"), OUTSOURCE("4", "委外");

        RepairOrderStatus(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
    enum PlanEndLoopType {//ERP_EQUIPMENT_PLAN_END_LOOP_TYPE
        LOOP("1", "循环"), TIMING("3", "定时"), FREQUENCY("2", "频次");

        PlanEndLoopType(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
    enum PlanExecStatus {//ERP_EQUIPMENT_PLAN_EXEC_STATUS  待执行1，执行中2，已完成3，已作废4
        UNEXEC("1", "待执行"), EXECING("2", "执行中"), FINISH("3", "已完成"), SCRAP("4", "已作废");

        PlanExecStatus(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum PlanType {//ERP_EQUIPMENT_PLAN_TYPE  1
        CYCLE("1", "周期"), TEMP("2", "临时");

        PlanType(String code, String desc) {//ERP_EQUIPMENT_PLAN_TYPE
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum UpkeepTaskExecStatus {//ERP_EQUIPMENT_UPKEEP_TASK_EXEC
        EXEC("1", "正常"), PAUSE("2", "搁置"), WAIT("3", "等件"), OUTSOURCE("4", "委外");

        UpkeepTaskExecStatus(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum UpkeepType {//ERP_EQUIPMENT_UPKEEP_TYPE
        PLAN("1", "计划"), DEEP("2", "深度");

        UpkeepType(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
    enum Project {
        PLAN("10", "计划"), LSSUED("20", "待执行"), IMPROGRESS("30", "执行中"), COMPLETED("40", "已完成");

        Project(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
    enum Calibration {
        PLAN("10", "计划"), LSSUED("20", "待执行"), IMPROGRESS("30", "执行中"), COMPLETED("40", "已完成");

        Calibration(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
    enum CalibrationType {//MB_ERP_EQUIPMENT_CALIBRATION_TYPE 检定类型
        PLAN("10", "计划"), TEMP("20", "临时");

        CalibrationType(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
    enum PmisHode {//MB_ERP_EQUIPMENT_CALIBRATION_TYPE 检定类型
        PENDINGPRODUCTION("10", "待排产"), PUSHED("20", "已推送"), PRODUCTIONSCHEDULED("30", "已排产");

        PmisHode(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum LinkTimedTask {//ERP_EQUIPMENT_REPAIR_TIMED_TASK 设备分类所关联的定时任务
        TIMEOUTPUSH("10", "故障停机超时推送"), ACCPUSH("20", "验收推送"),
        PUSHEDINADVANCE("30", "保养计划提前推送"),RESPONSETIMEPUSH("40", "响应时长推送");

        LinkTimedTask(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
}
